package com.tudouji.project.copy.service.impl;

import java.util.List;
import com.tudouji.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.copy.mapper.KdsynparamcompMapper;
import com.tudouji.project.copy.domain.Kdsynparamcomp;
import com.tudouji.project.copy.service.IKdsynparamcompService;

/**
 * 参数对照Service业务层处理
 * 
 * @author tudouji
 * @date 2021-01-21
 */
@Service
public class KdsynparamcompServiceImpl implements IKdsynparamcompService 
{
    @Autowired
    private KdsynparamcompMapper kdsynparamcompMapper;

    /**
     * 查询参数对照
     * 
     * @param id 参数对照ID
     * @return 参数对照
     */
    @Override
    public Kdsynparamcomp selectKdsynparamcompById(Long id)
    {
        return kdsynparamcompMapper.selectKdsynparamcompById(id);
    }

    /**
     * 查询参数对照列表
     * 
     * @param kdsynparamcomp 参数对照
     * @return 参数对照
     */
    @Override
    public List<Kdsynparamcomp> selectKdsynparamcompList(Kdsynparamcomp kdsynparamcomp)
    {
        return kdsynparamcompMapper.selectKdsynparamcompList(kdsynparamcomp);
    }

    /**
     * 新增参数对照
     * 
     * @param kdsynparamcomp 参数对照
     * @return 结果
     */
    @Override
    public int insertKdsynparamcomp(Kdsynparamcomp kdsynparamcomp)
    {
        kdsynparamcomp.setCreateTime(DateUtils.getNowDate());
        return kdsynparamcompMapper.insertKdsynparamcomp(kdsynparamcomp);
    }

    /**
     * 修改参数对照
     * 
     * @param kdsynparamcomp 参数对照
     * @return 结果
     */
    @Override
    public int updateKdsynparamcomp(Kdsynparamcomp kdsynparamcomp)
    {
        kdsynparamcomp.setUpdateTime(DateUtils.getNowDate());
        return kdsynparamcompMapper.updateKdsynparamcomp(kdsynparamcomp);
    }

    /**
     * 批量删除参数对照
     * 
     * @param ids 需要删除的参数对照ID
     * @return 结果
     */
    @Override
    public int deleteKdsynparamcompByIds(Long[] ids)
    {
        return kdsynparamcompMapper.deleteKdsynparamcompByIds(ids);
    }

    /**
     * 删除参数对照信息
     * 
     * @param id 参数对照ID
     * @return 结果
     */
    @Override
    public int deleteKdsynparamcompById(Long id)
    {
        return kdsynparamcompMapper.deleteKdsynparamcompById(id);
    }
}
